Method 1: From Energies
In the previous section, we derived the differential equation that describes the motion of a mass-spring system. This differential equation is a second-order ordinary differential equation (ODE) that can be written as:
In this section, we will explore the first method to solve this differential equation, which, instead of using this ODE directly, uses the conservation of energy.
Table of Contents
Setting it Up
The total mechanical energy of the system is the sum of the kinetic energy and the potential energy.
The kinetic energy of the system is given by
The total mechanical energy of the system is thus given by:
We can use this to rewrite
Then, taking the square root of both sides, we get:
Let's introduce the new variables
Solving the Differential Equation
(The astute reader will notice that this implies
From here we can use a trigonometric substitution to solve the integral on the left-hand side.
When using trig substitutions, it's often helpful to draw a right triangle.
From our integrand, we can see that
In this triangle, the hypotenuse is
Plugging this back into our equation, we get:
Adding integral bounds:
- At
, is the initial angle. - At
, is the angle at time .
Solving the integrals, we get:
The coefficient of
Recall that
Let
Taking the cosine of both sides, we get:
Finally, we can solve for
Since
Differentiating this equation with respect to
Initial Conditions
We can find the initial conditions by looking at the initial position and velocity of the object.
At
We can also take the ratio of these two equations to get
Finally, take our equation for
This is the equation of motion for the undamped simple harmonic oscillator.
Summary and Next Steps
In this section, we derived the equation of motion for the undamped simple harmonic oscillator using the conservation of energy.
We did not have to solve the differential equation directly, but instead used the total mechanical energy of the system to find the position and velocity of the object at any time
In the next section, we will explore the second method to solve the differential equation, which is probably much faster than this method.